#define  _CRT_SECURE_NO_WARNINGS 1
#include "Heap.h"

void HeapTest()
{
	int arr[] = { 23,45,67,12,34,25,80,27,60,58 };
	HP hp;
	HeapInit(&hp);
	int i = 0;
	for (i = 0; i < sizeof(arr) / sizeof(arr[0]); i++)
	{
		HeapPush(&hp, arr[i]);
	}
	HeapPrint(&hp);

	HeapPop(&hp);
	HeapPrint(&hp);

	int top = HeapTop(&hp);
	printf("%d\n", top);
	
	HeapDestroy(&hp);
}

int main()
{
	HeapTest();
	return 0;
}